package org.warehousesystem.warehousebackend.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.warehousesystem.warehousebackend.entity.Menu;

import java.util.List;

@Mapper
public interface MenuMapper {
    @Select("SELECT MenuCode menuCode, MenuName menuName, MenuClick menuClick, " +
            "MenuComponent menuComponent, MenuIcon menuIcon " +
            "FROM menu WHERE MenuLevel = '1' ORDER BY id")
    List<Menu> listMenu();
}